﻿namespace Test.Game
{
    using System.ComponentModel;

    using Furesoft.WPF.Game;

    public partial class MainWindow
    {
        #region Constructors and Destructors

        private GameEngine ge;

        public MainWindow()
        {
            this.InitializeComponent();

            this.ge = new GameEngine(new TestGame(), this);
            this.ge.Start();
        }

        #endregion

        private void MainWindow_OnClosing(object sender, CancelEventArgs e)
        {
            this.ge.Stop();
        }
    }
}